<!-- INCLUDE sv_overall_header.html -->

<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->

	<!-- IF IN_FB_IFRAME -->
		<BR><p>{L_SV_FB_LOGIN}</p>
		<!-- <a href="http://www.facebook.com/dialog/oauth?client_id=144571395591718&redirect_uri=http%3A%2F%2Fapps.facebook.com%2Fstockvirtual%2F">
		-->		<a href="redirect.php">		<img src="../images/facebook_connect.gif">
	      </a>
		<BR>
		<p>{L_SV_MIN_PRIVILEDGE}</p>
		<BR>
	<!-- ELSE -->
		<h3>{L_SV_LOGIN_BY_FB}</h3>
		<a href="{S_FB_LOGIN_URL}">
    	    <img src="images/facebook_connect.gif">
	      </a>
	      <p>{L_SV_MIN_PRIVILEDGE}</p>
		
	    <script type="text/javascript" language="JavaScript">
	    function ShowContent(d) 
	    {
			document.getElementById(d).style.display = "block";
		}
		function HideContent(d) 
	    {
			document.getElementById(d).style.display = "none";
		}
		function ShowOpenID()
		{
			ShowContent('openid_div');
			HideContent('show_openid_link');
		}			
	    </script>
	    	   
	    <div id="show_openid_link" style="display:block;">
	    	<a href="javascript:ShowOpenID()">
			{L_SV_LOGIN_IN_OTHER_WAYS}
			</a>
		</div>
	    <div id="openid_div" style="display:none;">
			
		
			<form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
			<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
				<fieldset class="quick-login">
					<label for="username">{L_USERNAME}:</label>&nbsp;<input type="text" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" />
					<label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" />
					<!-- IF S_AUTOLOGIN_ENABLED -->
						| <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label>
					<!-- ENDIF -->
					<input type="submit" name="login" value="{L_LOGIN}" class="button2" />
					{S_LOGIN_REDIRECT}
				</fieldset>
			</form>
		</div>
				
		<BR>
	<!-- ENDIF -->
<!-- ENDIF -->




<!-- IF S_SHOW_WELCOME_NEWBIE -->
<!-- INCLUDE welcome_newbie.html -->
<!-- ENDIF -->


<!-- IF S_USER_LOGGED_IN  -->

<div id="jquery_button" style="float:left;margin-right:1em;">

<table cellspacing="10" >
<tr>

	<td><h4><button style="width:10em;" onClick="window.location='{S_BUY_ACTION}'">{L_SV_BUY}</button></h4></td>
	
	<!-- IF S_HOLDING_ANY_STOCK  --><td><h4><button style="width:10em;" onClick="window.location='{S_SELL_ACTION}'">{L_SV_SELL}</button></h4></td><!-- ENDIF -->
	
	<td><h4><button style="width:10em;" onClick="window.location='{S_PERFORMANCE_ACTION}'">{L_SV_PERFORMANCE}</button></h4></td>
	<td><h4><button style="width:10em;" onClick="window.location='{S_RANKING_ACTION}'">{L_SV_RANKING}</button></h4></td>
	
	
</tr>
<tr>
	<td><h4><button style="width:10em;" onClick="window.location='{S_SHORT_SELL_ACTION}'">{L_SV_SHORT_SELL}</button></h4></td>	
	
	<!-- IF S_SHORTING_ANY_STOCK  --><td><h4><button style="width:10em;" onClick="window.location='{S_SHORT_COVER_ACTION}'">{L_SV_SHORT_COVER}</button></h4></td>	<!-- ENDIF -->
	
	<td><h4><button style="width:10em;" onClick="window.location='{S_DELEGATION_WHILE_SITE}'">{L_SV_DELEGATION_WHILE_SITE}</button></h4></td>	
	
	<!-- IF IS_FOLLOWING_ANYONE -->
	<td><h4><button style="width:10em;" onClick="window.location='{S_FOLLOW_INFO}'">{L_SV_FOLLOW_INFO}</button></h4></td>	
	<!-- ENDIF -->
	
</tr>
<tr>	
	<td><h4><button style="width:10em;" onClick="window.location='{S_PERSONAL_SETTING_ACTION}'">{L_SV_PERSONAL_SETTING}</button></h4></td>	
	
	<!-- IF not IN_FB_IFRAME  -->
	<td><h4><button style="width:10em;" onClick="window.location='{S_STOCK_SELECTION_ACTION}'">{L_SV_STOCK_SELECTION}</button></h4></td>	
	<!-- ENDIF -->
	
	<!-- IF IN_FB_IFRAME and S_USER_LOGGED_IN  and S_HAS_FB_FRIEND_REGISTERED -->
	<td><h4><button style="width:10em;" onClick="window.location='{S_FB_FRIENDS_RANKING_ACTION}'">{L_SV_FB_FRIENDS_RANKING}</button></h4></td>	
	<!-- ENDIF -->
	
</tr>
</table>

</div>

	<!-- IF MARKET_INFO_OPTION != 0 -->
	<div class="panel" style="float:right;margin-right:1em;"> 
		<div class="inner"><span class="corners-top"><span></span></span> 
		<h2> {L_SV_MARKET_INFO}&nbsp <img title="{L_SV_MARKET_INFO_TIP}" src="{T_IMAGES_PATH}icons/smile/info.gif" alt="info" /></h2> 
		
		</div>
		
		{L_SV_MARKET_INFO_TAIEX_CHART_NAME} (YAHOO!)<BR>
		<a href="https://tw.stock.yahoo.com/" target=_blank>
			<img src="https://tw.quote.finance.yahoo.net/quote/chart?t=2&s=%23001" border="0" >				
		</a>
		
		
		<BR>
	</div>
	<!-- ENDIF -->

<!-- ELSE  -->


<!-- IF SHOW_USER_VALUE -->
<div class="panel" style="float:left;margin-right:1em;"> 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>{L_SV_MARKET_VALUE_RANKING}</h2> 
	
	</div>
	<table border="0" cellpadding="5" cellspacing="5">
		<tr>
			<td><p>{L_SV_RANK_INDEX}</p></td>
			
			<td></td>
			
			<td><p>{L_SV_USER_NAME}</p></td>
			<td><p>{L_SV_MARKET_VALUE}</p></td>
			
		</tr>
		<!-- BEGIN list -->
			<td><p>{list.INDEX}</p></td>
			<td height="36">
				<!-- IF list.USER_FB_ID != 0 -->
					<img src="http://graph.facebook.com/{list.USER_FB_ID}/picture" width=32 height=32>
				<!-- ELSE -->
					<div style="width: 32px; height: 32px; background: #ECF1F3; border: 0px;">&nbsp;</div>
				<!-- ENDIF -->
			</td>
			<td><p><a href="{S_QUERY_USER}&user_id={list.USER_ID}">{list.USER_NAME}</a></p></td>
			<td><p>{list.VALUE}</p></td>
			
		</tr>
		<!-- END list -->
	</table>
	
	<a href="{S_FULL_RANKING}"><p align='right'>{L_SV_FULL_RANKING}</p></a>
</div>
<!-- ENDIF -->

<!-- IF SHOW_1_MONTH_ROI -->
<div class="panel" style="float:left;margin-right:1em;"> 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>{L_SV_ROI_RANKING_LAST_1_MONTH}</h2> 
	
	</div>
	<table border="0" cellpadding="5" cellspacing="5">
		<tr>
			<td><p>{L_SV_RANK_INDEX}</p></td>
			
			<td></td>
			
			<td><p>{L_SV_USER_NAME}</p></td>
			<td><p>{L_SV_ROI}</p></td>
			
		</tr>
		<!-- BEGIN roi_1_month_list -->
		<tr>	
			<td><p>{roi_1_month_list.INDEX}</p></td>	
			<td height="36">
				<!-- IF roi_1_month_list.USER_FB_ID != 0 -->
					<img src="http://graph.facebook.com/{roi_1_month_list.USER_FB_ID}/picture" width=32 height=32>
				<!-- ELSE -->
					<div style="width: 32px; height: 32px; background: #ECF1F3; border: 0px;">&nbsp;</div>
				<!-- ENDIF -->
			</td>
			<td><p><a href="{S_QUERY_USER}&user_id={roi_1_month_list.USER_ID}">{roi_1_month_list.USER_NAME}</a></p></td>
			<td><p>{roi_1_month_list.ROI}%</p></td>			
		</tr>
		<!-- END list -->
	</table>
	
	<a href="{S_FULL_RANKING_1_MONTH_ROI}"><p align='right'>{L_SV_FULL_RANKING}</p></a>
</div>
<!-- ENDIF -->
<!-- ENDIF -->

<!-- IF S_SHOW_STATISTICS -->
<h1><a href="{S_STATISTICS}">STATISTICS</a></h1>
<h1><a href="{S_FB_FRIEND_INFO}">FB Friend Info</a></h1>
<h1><a href="{S_FOLLOW_STATISTICS}">Follow Statistics</a></h1>
<h1><a href="{S_MANAGE_POLL}">Manage Poll</a></h1>
<!-- ENDIF -->
<!-- IF S_SHOW_ADM_QUERY -->
<h1><a href="{S_ADM_QUERY}">Adm Query</a></h1>
<!-- ENDIF -->
<!-- IF S_SHOW_ADM_EQUITY_CHANGE -->
<h1><a href="{S_ADM_EQUITY_CHANGE}">Equity Change</a></h1>
<!-- ENDIF -->
<!-- IF S_SHOW_NEWS_CONSOLE -->
<h1><a href="{S_NEWS_CONSOLE}">News Console</a></h1>
<!-- ENDIF -->
<hr>

<!-- IF  S_USER_LOGGED_IN  -->
<!-- INCLUDE holding_stock_list.html -->
<!-- INCLUDE to_buy_delegation_list.html -->
<!-- INCLUDE to_sell_delegation_list.html -->

<!-- ENDIF -->

<!-- IF S_SHOW_NEWS -->
<!-- INCLUDE news.html -->
<!-- ENDIF -->

<!-- INCLUDE equity_change_event_list.html -->

<!-- IF S_SHOW_KNOWLEDGE -->
<!-- INCLUDE knowledge_titles.html -->
<!-- ENDIF -->

<!-- IF S_HAS_POLL -->
<!-- INCLUDE poll.html -->
<!-- ENDIF -->


<!-- IF IN_FB_IFRAME -->
<br>
<p><a href="http://www.facebook.com/stockvirtual" target="_blank">{L_SV_VISIT_PAGE}</a>
</p>
<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fstockvirtual.info&amp;width=450&amp;height=80&amp;colorscheme=light&amp;layout=standard&amp;action=recommend&amp;show_faces=true&amp;send=true&amp;appId=144571395591718" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
<!-- ELSE IF -->


<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
		<h2> {L_SV_SOCIAL_TITLE} </h2> 
		<p>{L_SV_SOCIAL_DESC}</p>

		<p>- <a href="http://www.facebook.com/stockvirtual" target="_blank">{L_SV_VISIT_PAGE}</a></p>
		
		<p>- <a href="https://chrome.google.com/webstore/detail/%E6%A8%A1%E6%93%AC%E8%82%A1%E5%B8%82/bgojaddffancnhilgkofhgoeegfoajng?hl=zh-TW&utm_source=chrome-ntp-launcher" target="_blank">{L_SV_VISIT_CHROME_STORE}</a></p>		
		
		
		
		<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fstockvirtual.info&amp;width=450&amp;height=80&amp;colorscheme=light&amp;layout=standard&amp;action=recommend&amp;show_faces=true&amp;send=true&amp;appId=144571395591718" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
		
		<BR>
		<!-- ?No??m +1 s?X{mC -->
		<g:plusone></g:plusone>

		
	</div>
</div>

<!-- ENDIF -->


<br>
<!-- ?No??m <head> ? </body> ?eC -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
{lang: 'zh-TW'}
</script>

<!-- INCLUDE sv_overall_footer.html -->